package com.mxdx.edu.common;

import java.io.Serializable;

/**
 * api 请求响应类
 *
 * @author zyc
 * @date 2015年4月14日
 */
public class ApiResult<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	// 模块名称
	private String apiName;
	// 响应时间
	private long time = System.currentTimeMillis();
	// 响应码
	private String status = "00000000";
	// 请求序列码
	private String serialNum;
	// 响应描述
	private String message = "success";
	// 保留字段
	private String info;
	// 响应扩展
	private T result;

	public String getApiName() {
		return apiName;
	}

	public void setApiName(String apiName) {
		this.apiName = apiName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSerialNum() {
		return serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

	public long getTime() {
		return time;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

}
